package com.xes.ams.client.api;

public enum ResultCode {
	ERROR {
		@Override
		public int getCode() {
			return 9999;
		}

		@Override
		public String getMessage() {
			return "系统异常";
		}
	},
	NONE_CARD_NUMBER {
		@Override
		public int getCode() {
			return 1001;
		}

		@Override
		public String getMessage() {
			return "读卡信息失败";		// 卡号为空
		}
	},
	SUCCESS {
		@Override
		public int getCode() {
			return 2000;
		}

		@Override
		public String getMessage() {
			return "成功";
		}
	},
	NONE_ATTEND_RECORD {
		@Override
		public int getCode() {
			return 2001;
		}
		//无课
		@Override
		public String getMessage() {
			return "今日无课程";
		}
	},
	BEFOR_COURSE_STARTED {
		@Override
		public int getCode() {
			return 2002;
		}
		//课未开始[不在刷时间范围]
		@Override
		public String getMessage() {
			return "今日无课程";
		}
	},
	COURSE_IS_STARTED {
		@Override
		public int getCode() {
			return 2003;
		}
		
		@Override
		public String getMessage() {
			return "课已开始";
		}
	},
	COURSE_IS_END {
		@Override
		public int getCode() {
			return 2004;
		}
		
		@Override
		public String getMessage() {
			return "课已结束";
		}
	},
	NONE_ATTEND_DATA {
		@Override
		public int getCode() {
			return 3002;
		}

		@Override
		public String getMessage() {
			return "下载考勤数据失败";
		}
	};
	
	public abstract int getCode();

	public abstract String getMessage();
}
